//开启true//禁止false
function refresh(bool) {
	const pages = getCurrentPages();  
	const page = pages[pages.length - 1];  
	const currentWebview = page.$getAppWebview();
	currentWebview.setStyle({  
	  pullToRefresh: {  
	    support: bool,  
	    style: plus.os.name === 'Android' ? 'circle' : 'default'  
	  }  
	});
}

export default refresh;